<%@ page language="java" import="java.util.*,javax.servlet.*" pageEncoding="UTF-8"%>
<%@ page import="cn.huas.model.Teachers,cn.huas.model.Classes,cn.huas.model.Admin" %>
<%
String path = request.getContextPath();
%>
<jsp:include page="/schedule/util.jsp"></jsp:include>	
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>自动排课系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"> 
	<style type="text/css">
		.STYLE1 {
		font-family: Arial, Helvetica, sans-serif;
		color: #6699FF;
	}
    </style> 
	<jsp:include page="/schedule/util.jsp"></jsp:include>	
	<script  type="text/javascript">
	Ext.onReady(function(){
		var root=new Ext.tree.TreeNode({
	          id:"root",//根节点id
	       	  text:"<span style='font-size:16px'>自动排课系统</span>"

	    });


	    //定义树节点

	    var c1=new Ext.tree.TreeNode({

	      id:'c1',//子结点id
	      text:"<span style='font-size:14px'>我的应用</span>"
	    });

	    var c12=new Ext.tree.TreeNode({
	      id:'c12',
	      text:"<span style='font-size:14px'>查询课表</span>",
	      listeners:{//监听
	      "click":function(node,e){
	    	  window.parent.frames['mainFrame'].location.reload('courseList.jsp');
	           }
	    	}
	    });

	    var c13=new Ext.tree.TreeNode({

	          id:'c13',
	          text:"<span style='font-size:14px'>修改登录信息</span>",
	          listeners:{//监听
	          "click":function(node,e){
	        	 	 window.parent.frames['mainFrame'].location.reload('changeInfo.jsp');
	               }
	        	}

	        });
	     
	      root.appendChild(c1);//为根节点增加子结点c1
	      c1.appendChild(c12);//为c1增加子节点c12
	      c1.appendChild(c13);//为c1增加子节点c12
	      
	      //生成树形面板

	      var tree=new Ext.tree.TreePanel({

	        renderTo:"div1",

	        root:root,//定位到根节点

	        animate:true,//开启动画效果

	        enableDD:false,//不允许子节点拖动

	        border:false,//有边框

	        rootVisible:true//设为false将隐藏根节点，很多情况下，我们选择隐藏根节点增加美观性

	     });
			var classesform= new Ext.form.FormPanel({
								region:'center',
								frame : true,
								width:180,
								height:200,
								layout : "form", // 整个大的表单是form布局
								labelWidth : 65,
								labelAlign : "right",
								renderTo:"div2",
								maximizable:true,
								items : [{ // 行1
									layout : "column", // 从左往右的布局
									items : [{
										columnWidth : .8,
										layout : "form",
										items : [{
											xtype : "textfield",
											value:'${classes.name}' ,
											allowBlank : false,
											name:"classes.name",
											fieldLabel : "班级名称",
											blankText: '必须填写',
											width : 100
										}]
									}]
								}]
							});
		
	});
	</script>
  </head>
  <body>
  <div id="div1" style="height:82%"></div>
   <br><br><div align="center" class="STYLE1">团结协作</div>
    <br><div align="center" class="STYLE1">共创美好未来</div>
  </body>
</html>
